package com.gqb.concurrency;

import java.util.concurrent.locks.LockSupport;

public class LockSupportTry {
	public static int a=3;
	public static void main(String[] args) {
		ThreadA threadA=new ThreadA(Thread.currentThread());
		threadA.start();
		System.out.println("主线程被锁");
		LockSupport.park(Thread.currentThread());
		System.out.println("我被唤醒了");
		LockSupportTry.a--;
		System.out.println(LockSupportTry.a);
		int s=16;
		s=s>>3;
		System.out.println(s);
		s%=3;
		
		System.out.println(s);
	}
}

